package main

import "fmt"

func main() {
	i := 10
	if i > 10 {
		fmt.Println("i > 10")
	} else {
		fmt.Println("i <= 10")
	}

	i = 6
	if i > 10 {
		fmt.Println("i>10")
	} else if i > 5 && i <= 10 {
		fmt.Println("i>5 and i<=10")
	} else {
		fmt.Println("i<=5")
	}
	switch i := 8; {
	case i > 10:
		fmt.Println("i>10")
	case i <= 10 && i > 5:
		fmt.Println("i<=10 && i>5")
	case i <= 5:
		fmt.Println("i<=5")
	default:
		fmt.Println("default")
	}

	switch j := 1; j {
	case 1:
		fallthrough
	case 2:
		fmt.Println("j=1 or j=2")
	default:
		fmt.Println("没有匹配")
	}

	sum := 0
	count := 100
	for i := 1; i <= count; i++ {
		if i%2 == 0 {
			continue
		}
		sum += i
	}
	fmt.Println(sum)
}
